import http from '../utils/axios'
//登录
export function runTaskGet(query:any) {
  return http.request({
    url: '/run-task/get',
    method: 'post',
    data: query
  })
}
export function runTaskAudit(query:any) {
  return http.request({
    url: '/run-task/audit',
    method: 'post',
    data: query
  })
}
//获取客户资料卡
export function runTaskCustomer(query:any) {
  return http.request({
    url: '/run-task/customer',
    method: 'post',
    data: query
  })
}
//获取变更评率
export function inspectPlanList(query:any) {
  return http.request({
    url: '/inspect_plan/list',
    method: 'post',
    data: query
  })
}
//设置人员分配
export function runTaskAssign(query:any) {
  return http.request({
    url: '/run-task/assign',
    method: 'post',
    data: query
  })
}
//保存表单信息进入暂缓区
export function runTaskStash(query:any) {
  return http.request({
    url: '/run-task/stash',
    method: 'post',
    data: query
  })
}
//申请退费
export function runTaskApplyRefund(query:any) {
  return http.request({
    url: '/run-task/applyRefund',
    method: 'post',
    data: query
  })
}
//申请解保
export function runTaskPreRelease(query:any) {
  return http.request({
    url: '/run-task/preRelease',
    method: 'post',
    data: query
  })
}
//批量新增导入提交
export function projectBatchAdd(query:any) {
  return http.request({
    url: '/project_input/batch/add',
    method: 'post',
    data: query
  })
}
//批次提交
export function projectBatchCommit(query:any) {
  return http.request({
    url: '/project_input/batch/commit',
    method: 'post',
    data: query
  })
}
//获取文件模版
export function fileListByPage(query:any) {
  return http.request({
    url: '/file-template/listByPage',
    method: 'post',
    data: query
  })
}
//删除待推客户列表
export function projectInputDel(query:any) {
  return http.request({
    url: '/project_input/batch/del',
    method: 'post',
    data: query
  })
}
//批量详情获取批次卡
export function runTaskBatch(query:any) {
  return http.request({
    url: '/run-task/batch',
    method: 'post',
    data: query
  })
}
//批量详情是否能登记放款
export function isEnrollFunding(query:any) {
  return http.request({
    url: '/run-task/isEnrollFunding',
    method: 'post',
    data: query
  })
}
//批量详情是否能批量审批
export function isApprove(query:any) {
  return http.request({
    url: '/run-task/isApprove',
    method: 'post',
    data: query
  })
}
//批量详情是否能分配处理人节点
export function isAssign(query:any) {
  return http.request({
    url: '/run-task/isAssign',
    method: 'post',
    data: query
  })
}
//批量详情是否能回退
export function isRollback(query:any) {
  return http.request({
    url: '/run-task/isRollback',
    method: 'post',
    data: query
  })
}
//批量详情审批
export function batchStash(query:any) {
  return http.request({
    url: '/run-task/batchStash',
    method: 'post',
    data: query
  })
}
//批量详情分配处理人
export function batchAssign(query:any) {
  return http.request({
    url: '/run-task/batchAssign',
    method: 'post',
    data: query
  })
}
//批量详情登记放款
export function batchEnrollFunding(query:any) {
  return http.request({
    url: '/run-task/batchEnrollFunding',
    method: 'post',
    data: query
  })
}
//批量详情登记还款
export function batchRepayment(query:any) {
  return http.request({
    url: '/run-task/batchRepayment',
    method: 'post',
    data: query
  })
}
//批量详情文件上传
export function batchDocUpload(query:any) {
  return http.request({
    url: '/run-task/batchDocUpload',
    method: 'post',
    data: query
  })
}
//批量详情回退
export function batchRollback(query:any) {
  return http.request({
    url: '/run-task/batchRollback',
    method: 'post',
    data: query
  })
}
//批量详情是否登记还款
export function isRepayment(query:any) {
  return http.request({
    url: '/run-task/isRepayment',
    method: 'post',
    data: query
  })
}
//批量详情更改状态
export function updateStatus(query:any) {
  return http.request({
    url: '/run-task/updateStatus',
    method: 'post',
    data: query
  })
}
//批量详情获取所有任务
export function batchIds(query:any) {
  return http.request({
    url: '/run-task/batchIds',
    method: 'post',
    data: query
  })
}
//批量详情获取所有任务
export function batchAudit(query:any) {
  return http.request({
    url: '/run-task/batchAudit',
    method: 'post',
    data: query
  })
}
//业务管理详情客户资料卡
export function businessCustomer(query:any) {
  return http.request({
    url: '/business/customer',
    method: 'post',
    data: query
  })
}
//待办列表更新状态
// export function statusTrigger(query:any) {
//   return http.request({
//     url: '/run-task/statusTrigger',
//     method: 'post',
//     data: query
//   })
// }
//业务资料批次客户资料包下载
export function downloadBusinessData(query:any) {
  return http.request({
    url: '/run-task/downloadBusinessData',
    method: 'post',
    data: query
  })
}
//批次详情获取批次审批流程列表
export function batchHisDetail(query:any) {
  return http.request({
    url: '/run-task/batchHisDetail',
    method: 'post',
    data: query
  })
}
//批次详情暂停批次
export function batchStop(query:any) {
  return http.request({
    url: '/run-task/batchStop',
    method: 'post',
    data: query
  })
}
//业务文件生成
export function docList(query:any) {
  return http.request({
    url: '/run-task/docList',
    method: 'post',
    data: query
  })
}

export function batchGetById(query:any) {
  return http.request({
    url: '/project_input/batch/getById',
    method: 'post',
    data: query
  })
}
//获取批量文件
export function batchDocList(query:any) {
  return http.request({
    url: '/run-task/batch/docList',
    method: 'post',
    data: query
  })
}
// //获取当前任务
// export function nodeFind(query:any) {
//   return http.request({
//     url: '/node/find',
//     method: 'post',
//     data: query
//   })
// }
//获取财务报表
export function financeList(query:any) {
  return http.request({
    url: '/finance/list',
    method: 'post',
    data: query
  })
}
//获取财务报表
export function financeInfo(query:any) {
  return http.request({
    url: '/finance/info',
    method: 'post',
    data: query
  })
}
//获取财务报表读取数据
export function financeUpload(query:any) {
  return http.request({
    url: '/finance/upload',
    method: 'post',
    data: query
  })
}